package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 态势响应表
 * @TableName disposition_wq_tsxy
 */
@TableName(value ="disposition_wq_tsxy")
@Data
public class DispositionWqTsxy implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 编成名称
     */
    @TableField(value = "compiled_name")
    private String compiledName;

    /**
     * 父节点Id
     */
    @TableField(value = "parent_node_id")
    private String parentNodeId;

    /**
     * 关联对象
     */
    @TableField(value = "related_object")
    private String relatedObject;

    /**
     * 关联对象所属数据集合名称
     */
    @TableField(value = "gldxsssjjh_name")
    private String gldxsssjjhName;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private String longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private String latitude;

    /**
     * 关联想定
     */
    @TableField(value = "relatedscenario")
    private String relatedscenario;

    /**
     * 数据类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * json数据
     */
    @TableField(value = "json_data")
    private String jsonData;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqTsxy other = (DispositionWqTsxy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompiledName() == null ? other.getCompiledName() == null : this.getCompiledName().equals(other.getCompiledName()))
            && (this.getParentNodeId() == null ? other.getParentNodeId() == null : this.getParentNodeId().equals(other.getParentNodeId()))
            && (this.getRelatedObject() == null ? other.getRelatedObject() == null : this.getRelatedObject().equals(other.getRelatedObject()))
            && (this.getGldxsssjjhName() == null ? other.getGldxsssjjhName() == null : this.getGldxsssjjhName().equals(other.getGldxsssjjhName()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getRelatedscenario() == null ? other.getRelatedscenario() == null : this.getRelatedscenario().equals(other.getRelatedscenario()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getJsonData() == null ? other.getJsonData() == null : this.getJsonData().equals(other.getJsonData()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompiledName() == null) ? 0 : getCompiledName().hashCode());
        result = prime * result + ((getParentNodeId() == null) ? 0 : getParentNodeId().hashCode());
        result = prime * result + ((getRelatedObject() == null) ? 0 : getRelatedObject().hashCode());
        result = prime * result + ((getGldxsssjjhName() == null) ? 0 : getGldxsssjjhName().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getRelatedscenario() == null) ? 0 : getRelatedscenario().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getJsonData() == null) ? 0 : getJsonData().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", compiledName=").append(compiledName);
        sb.append(", parentNodeId=").append(parentNodeId);
        sb.append(", relatedObject=").append(relatedObject);
        sb.append(", gldxsssjjhName=").append(gldxsssjjhName);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", relatedscenario=").append(relatedscenario);
        sb.append(", type=").append(type);
        sb.append(", jsonData=").append(jsonData);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}